﻿using System;

namespace HangerSupport
{
	public struct HSCalBarInfo
	{
		public HSCalBarInfo(HSCalBarInfo def)
		{
			this.m_matInfo = new HSMatInfo(def.m_matInfo);
			this.m_dLength = def.m_dLength;
			this.m_nSameNum = def.m_nSameNum;
			this.m_nBarType = def.m_nBarType;
		}

		public HSCalBarInfo(HSMatInfo mat)
		{
			this.m_matInfo = new HSMatInfo(mat);
			this.m_dLength = 0.0;
			this.m_nSameNum = 1L;
			this.m_nBarType = 0;
		}

		public bool IsSameSize(HSCalBarInfo cur)
		{
			return this.m_matInfo.IsSame(cur.m_matInfo);
		}

		public bool IsSameSizeLength(HSCalBarInfo cur)
		{
			bool flag = !this.IsSameSize(cur) || !this.m_dLength.Equals(cur.m_dLength);
			return !flag;
		}

		public HSMatInfo m_matInfo;

		public double m_dLength;

		public long m_nSameNum;

		public int m_nBarType;
	}
}
